PASSWD=$(grep 'temporary password' /var/log/mysqld.log )
MYSQLPASSWD=${PASSWD:0-12}
echo MYSQLPASSWD
mysqladmin -uroot -p${MYSQLPASSWD} password "Aa123456789#"
mysql -uroot -pAa123456789# << EOF
	set global validate_password_policy=LOW;
	set global validate_password_length=4;
	ALTER USER 'root'@'localhost' IDENTIFIED BY '123456'; 
	use mysql;
	update user set host = '%' where user ='root';
	FLUSH PRIVILEGES;
EOF
echo "mysql密码：123456"